﻿using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AngleExpress.web
{
    class FireFoxWebOpener: WebOpener
    {
        public FireFoxWebOpener() : base("geckodriver")
        {

        }
        protected override IWebDriver initDriver()
        {
            OpenQA.Selenium.Firefox.FirefoxDriverService driverService = OpenQA.Selenium.Firefox.FirefoxDriverService.CreateDefaultService();
            driverService.HideCommandPromptWindow = true;
            OpenQA.Selenium.Firefox.FirefoxOptions options = new OpenQA.Selenium.Firefox.FirefoxOptions();
            return new OpenQA.Selenium.Firefox.FirefoxDriver(driverService, options);
        }
    }
}
